package model.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import utils.FNVHash;

public class MsgDepartpassengerDel implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public Long hashid;
	
	public Long getHashid() {
		return FNVHash.hash64(orgcode+departdate.getTime()+
				schedulecode+reachstationcode+vehicleno);
	}

	@Temporal(TemporalType.DATE)
	public Date departdate;

	public String orgcode;

	public String reachstationcode;

	public String schedulecode;

	public Long deletetime;

	public String vehicleno;

	public MsgDepartpassengerDel(Date departdate,
			String orgcode, String reachstationcode, String schedulecode,
			Long deletetime, String vehicleno) {
		super();
		
		this.departdate = departdate;
		this.orgcode = orgcode;
		this.reachstationcode = reachstationcode;
		this.schedulecode = schedulecode;
		this.deletetime = deletetime;
		this.vehicleno = vehicleno;
		this.hashid = getHashid();
	}
	
	

}
